add_library(AcousticTL AcousticTL.h AcousticTL.cpp helperFunctions.h)

target_link_libraries(AcousticTL TransmissionLayer)

add_subdirectory(FrameProtocol)
add_subdirectory(Sync)
add_subdirectory(FrameReceiver)
add_subdirectory(DtmfSpec)
add_subdirectory(DtmfTone)
add_subdirectory(DtmfAnalysis)

target_link_libraries(AcousticTL FrameProtocol Sync FrameReceiver DtmfSpec DtmfTone DtmfAnalysis)

add_executable(atlPlayFrame Test/atlPlayFrame.cpp)
target_link_libraries(atlPlayFrame AcousticTL PaWrapper)

add_executable(atlSendReceive Test/atlSendReceive.cpp)
target_link_libraries(atlSendReceive AcousticTL PaWrapper)

add_executable(goertzelPerformance Test/goertzelPerformance.cpp)
target_link_libraries(goertzelPerformance DtmfAnalysis)